package com.lihh.demo;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

public class SupplyAsyncGet
{
    public static void main(String[] args) throws ExecutionException, InterruptedException
    {
        CompletableFuture<Void> runAsync = CompletableFuture.runAsync(() -> {
            System.out.println("执行 子线程");
        });

        Void unused = runAsync.get();
        System.out.println(unused);
    }
}
